import 'package:flutter/material.dart';

class SearchPage extends StatefulWidget {
  // final String content;
  final Map arguments;
  const SearchPage({super.key, required this.arguments});

  @override
  State<SearchPage> createState() => _SearchPageState();
}

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("搜索"),
      ),
      body: Center(
        child: Column(
          children: [
            Text("搜索页面:${widget.arguments["content"]}"),
            const SizedBox(
              height: 40,
            ),
            ElevatedButton(
                onPressed: () {
                  Navigator.pop(context);
                },
                child: const Text("返回"))
          ],
        ),
      ),
    );
  }
}
